package edu.zju.gis.dldsj.model;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class MrRaster implements Jsonable {
    private String pk_id;
    private String res_title;
    private Date resref_date;
    private String file_size;
    private String data_abstract;
    private double west_bl;
    private double east_bl;
    private double south_bl;
    private double north_bl;
    private String geoid;
    private String geoinfo;
    private String spatial_res;
    private String satellite_type;
    private String image_type;
    private String format_name;
    private String format_ver;
    private String keywords;
    private String summary;
    private String coorsid;
    private String online_ops;
    private String ori_path;
    private Integer have_index;
    private Integer index_count;
    private String backup_status;

    @Override
    public String id() {
        return pk_id;
    }

    /***
     * 设置默认值
     */
    public void setDefaultValue() {
        this.geoid = "Unknown";
        this.geoinfo = "Unknown";
        this.satellite_type = "Unknown";
        this.image_type = "Unknown";
        this.format_ver = "Unknown";
        this.keywords = "Unknown";
        this.summary = "Unknown";
        this.have_index = 0;
        this.index_count = 0;
        this.backup_status = "Unknown";
    }
}